Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support flag command #220

Merged
merged 1 commit into from
Aug 4, 2023
Merged

feat: support flag command #220

merged 1 commit into from
Aug 4, 2023

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Aug 4, 2023

Flag command has command name startsWith -.
Use pacman as example:

# @cmd
# @alias -Q
# @option -i  --info           view package information (-ii for backup files)
--query() {
  :;
}

# @cmd
# @alias -S
# @option  -s  --search <regex> search remote repositories for matching strings
--sync() {
  :;
}
$ pacman -Qi vim

$ pacman -Ss '^vim-'

@sigoden sigoden merged commit 7773228 into main Aug 4, 2023
3 checks passed
@sigoden sigoden deleted the feat-flag-cmd branch August 4, 2023 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant